/*
 * Copyright 2008 David L. Whitehurst, Cape Henry Technologies Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.cpht.app.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "sections", catalog = "genesis_development")
public class Section implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 6248079392787453559L;

    private int id;

    private String title;

    private String titleShort;

    private Boolean published;

    private String description;

    public Section() {
    }

    public Section(int id) {
        this.id = id;
    }

    public Section(int id, String title, String titleShort, Boolean published,
            String description) {
        this.id = id;
        this.title = title;
        this.titleShort = titleShort;
        this.published = published;
        this.description = description;
    }

    @Id
    @Column(name = "id", unique = true, nullable = false)
    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name = "title")
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column(name = "title_short")
    public String getTitleShort() {
        return this.titleShort;
    }

    public void setTitleShort(String titleShort) {
        this.titleShort = titleShort;
    }

    @Column(name = "published")
    public Boolean getPublished() {
        return this.published;
    }

    public void setPublished(Boolean published) {
        this.published = published;
    }

    @Column(name = "description", length = 65535)
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
